package baiju.oop.inheritance;

public class parent {

	String name;
	public int id;
	protected String age;
	private String emailid;
	
	public parent()
	{
		this.name = "Arun";
		this.id = 101;
		this.age = "20";
		this.emailid = "arun@gmail.com";
		
		System.out.println("Registration details");
		System.out.println(id + " " + name + " " + age + " " + emailid);
				
	}
	
	public parent(String name)
	{
		this();
		this.name = name;
		System.out.println("Paraent constructor with name param");
	}
		
	public void displayValues(String name)
	{
		this.name = name;
		System.out.println("Paraent constructor with name param");
		
	}
	
	
}
